package com.hb.core.pojo.project.file.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hb.core.pojo.parent.MPCommonEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 评审表格
 * </p>
 *
 * @author zhongdl
 * @since 2022-04-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("trade_review_evaluation_form")
public class ReviewEvaluationForm extends MPCommonEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 标段id
     */
    private Long sectionId;

    /**
     * 关联开标标段id
     */
    private Long fileId;

    /**
     * 文件类型  1：招标文件2：资格预审文件
     */
    private Integer bidFileType;

    /**
     * 第几信封  1第一信封（单信封的默认第一）2第二信封
     */
    private Integer envelopeSort;

    /**
     * 招标文件评审表一级评审ID
     */
    private Long basicsFirstId;

    /**
     * 评审项目三级
     */
    private Long basicsThirdId;

    /**
     * 招标文件评审表二级ID
     */
    private Long basicsSecondId;

    /**
     * 评审大项名称 1：初步评审 2：详细评审 3：报价评审
     */
    private Integer firstReviewItemType;


    /**
     * 评审项目名称
     */
    private String levelAssessName;

    /**
     * 评审形式  1：个人 2：汇总
     */
    private Integer formType;

    /**
     * 评审人
     */
    private Long expertUser;

    /**
     * 评审专家
     */
    private String expertName;

    /**
     * 表格生成的临时名字
     */
    private String temporaryFileName;

    /**
     * 系统生成表格地址
     */
    private String annexAddress;

    /**
     * 索引排序
     */
    private Integer sort;

    /**
     * 状态 1：已生成；2 未生成
     */
    private Integer status;

    public ReviewEvaluationForm(Long sectionId,
                                Long fileId,
                                Long basicsFirstId,
                                Long basicsSecondId,
                                Integer firstReviewItemType,
                                String levelAssessName,
                                Integer formType,
                                Long expertUser,
                                String expertName,
                                Integer status) {
        this.sectionId = sectionId;
        this.fileId = fileId;
        this.basicsFirstId = basicsFirstId;
        this.basicsSecondId = basicsSecondId;
        this.firstReviewItemType = firstReviewItemType;
        this.levelAssessName = levelAssessName;
        this.formType = formType;
        this.expertUser = expertUser;
        this.expertName = expertName;
        this.status = status;
    }

    public ReviewEvaluationForm() {
    }
}
